package com.uyayo.cms.service;

import com.uyayo.cms.entity.CmsModel;
import com.uyayo.cms.model.CmsModelCondition;
import com.uyayo.framework.pagehelper.pojo.PageBean;

import java.util.List;

public interface CmsModelService {


	CmsModel getModelById(Long id) throws Exception;

	List<CmsModel> selectModel(CmsModelCondition cmsModelCondition);

	PageBean<CmsModel> selectModelByPaging(Integer page, Integer rows, String sort, String order, CmsModelCondition cmsModelCondition);

	int createCmsModel(CmsModel cmsModel);

	CmsModel selectOne(CmsModel cmsModel);

	int updateModel(CmsModel cmsModel);

	int deleteModel(Long id);

}
